package diaosidadui.test2;

public class Test06 {
    public static void main(String[] args){
        int[] arr = { 11,22,33,44,55 };
        method(arr);
        for(int i = 0 ; i < arr.length ; i++){
            System.out.print(arr[i] + " ");
        }
    }

    public static void method(int[] arr){
        for(int i = 0 ; i < arr.length ; i++){
            if( i % 2 == 0 ){
                arr[i] += 100;   //{11,122,33,144,55}
            }
        }
    }
}

